package com.newbsd.web.maventest.service.impl;

import com.newbsd.web.maventest.dao.TicketDao1;

import com.newbsd.web.maventest.dao.impl.TicketDaoImpl1;
import com.newbsd.web.maventest.pojo.Ticket;
import com.newbsd.web.maventest.service.TicketService1;

/**  
 * 
* @author ZHM
* 
*/
public class TicketServiceImpl1 implements TicketService1{

	/**
	 * 票数  -1功能实现
	 */
	@Override
	public void updateTicket1(Ticket ticket) {
		TicketDao1 ticketDaoImpl = new TicketDaoImpl1();
		ticket.setTicketnum(ticket.getTicketnum());
		ticketDaoImpl.updateTicket1(ticket.getTickedid());
	}

}
